package future.demo01;

public class Client {
    private FutureData future = new FutureData();
    public Data request(String req) {
        new Thread(){
            @Override
            public void run() {
                RealData realData = new RealData(req);
                future.setRealData(realData);
            }
        }.start();
        return future;
    }
}
